/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.entity;

import com.jeeplus.modules.sys.entity.User;
import com.jeeplus.modules.xiongda.entity.XCategory;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 照片Entity
 * @author 缪琼
 * @version 2017-11-29
 */
public class XPhoto extends DataEntity<XPhoto> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户id
	private XCategory category;		// 分类id
	private String path;		// 图片的静态路径
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private Integer praise;		// 点赞
	private String commentIds;		// 评论ids
	private Integer isComment;		// 是否可评论
	
	public XPhoto() {
		super();
	}

	public XPhoto(String id){
		super(id);
	}

	@ExcelField(title="用户id", align=2, sort=1)
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@ExcelField(title="分类id", dictType="", align=2, sort=2)
	public XCategory getCategory() {
		return category;
	}

	public void setCategory(XCategory category) {
		this.category = category;
	}
	
	@ExcelField(title="图片的静态路径", align=2, sort=3)
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="创建时间", align=2, sort=4)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=5)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@ExcelField(title="点赞", align=2, sort=7)
	public Integer getPraise() {
		return praise;
	}

	public void setPraise(Integer praise) {
		this.praise = praise;
	}
	
	@ExcelField(title="评论ids", align=2, sort=8)
	public String getCommentIds() {
		return commentIds;
	}

	public void setCommentIds(String commentIds) {
		this.commentIds = commentIds;
	}
	
	@ExcelField(title="是否可评论", dictType="", align=2, sort=9)
	public Integer getIsComment() {
		return isComment;
	}

	public void setIsComment(Integer isComment) {
		this.isComment = isComment;
	}
	
}